﻿namespace S7PlcDataCollector.Client.Tools
{
    internal class Constants
    {
        /// <summary>
        /// 窗体宽高
        /// </summary>
        public static readonly int FormWidth = 1600;
        public static readonly int FormHeight = 900;

        /// <summary>
        /// 内容页宽度
        /// </summary>
        public static readonly int ContentWidth = 1200;

        /// <summary>
        /// PLC IP地址、端口
        /// </summary>
        public static readonly string S7PlcServerIp = @"192.168.0.241";
        public static readonly int S7PlcServerPort = 102;

        public static class PlcDataType
        {
            public static readonly string DataBlock = @"DataBlock";
            public static readonly string Input = @"Input";
            public static readonly string Output = @"Output";
            public static readonly string Memory = @"Memory";
        }

        public static class MenuTag
        {
            public const int PlcList = 1;
            public const int RealtimeData = 2;
        }
    }
}
